<template>

  <div>
    <button @click="isShow=!isShow">显示/隐藏</button>
    <transition appear >
      <h1 v-show="isShow"> 你好啊3</h1>
    </transition>
  </div>
</template>

<script>
/*过渡*/
import "animate.css"
export default {
  name: "Test",
  data(){

    return {
      isShow:true
    }
  }
}
</script>

<style scoped>
h1{
  background: cadetblue;
  transition: 0.5s;
}

.v-enter,.v-leave-to{

  opacity: 0;
  transform: translate(-100%);
}
.v-enter-to,.v-leave{
  opacity: 1;
  transform: translate(0);
}

</style>
